package com.mall4j.cloud.product.service.impl;

import com.mall4j.cloud.product.mapper.SpuSkuAttrValueMapper;
import com.mall4j.cloud.product.model.SpuSkuAttrValue;
import com.mall4j.cloud.product.service.SpuSkuAttrValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 商品sku销售属性关联信息
 *
 * @author JCM
 * @date 2021-04-28 02:09:00
 */
@Service
public class SpuSkuAttrValueServiceImpl implements SpuSkuAttrValueService {

    @Autowired
    private SpuSkuAttrValueMapper spuSkuAttrValueMapper;

    @Override
    public void save(SpuSkuAttrValue spuSkuAttrValue) {
        spuSkuAttrValueMapper.save(spuSkuAttrValue);
    }

    @Override
    public void deleteBySpuId(Long spuId) {
        spuSkuAttrValueMapper.deleteBySpuId(spuId);
    }
}
